const {
  DataTypes
} = require('sequelize');

module.exports = sequelize => {
  const attributes = {
    c_name: {
      type: DataTypes.STRING(5),
      allowNull: false,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: null,
      field: "c_name"
    },
    c_id: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: null,
      primaryKey: true,
      autoIncrement: true,
      comment: null,
      field: "c_id"
    }
  };
  const options = {
    tableName: "t_class",
    comment: "",
    indexes: []
  };
  const TClassModel = sequelize.define("t_class_model", attributes, options);
  return TClassModel;
};